#ifndef _WORKER_SQL_TOOLS__
#define _WORKER_SQL_TOOLS__
#include <mysql/mysql.h>
#include<my_header.h>


int my_init_db();
int generate_salt(char*salt);
int user_register (MYSQL *conn,char*username,char*salt,char*cryptograph,int netfd);
int user_login(MYSQL *conn,char*username,char*cryptograph,int netfd);
int user_logout (MYSQL *conn,char*username,int netfd);


#endif

